import express from 'express'
import bodyParser from "body-parser";
import { Application } from 'express';
import indexRouter from '../router/index';

const app: Application = express();

// 配置中间件
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

// 挂载路由
app.use('/', indexRouter);

export default app;
